{include_core file="lib/header.html" title="商品评价" center="center"}
{include_core file="lib/top_nav.html"}
<script>
$(function(){
	$('.circt .circt-box').mouseenter(function(){
		$(this).children('.circt-add').css('display','block');
	}).mouseleave(function(){
		$(this).children('.circt-add').css('display','none');
	});
});
</script>
      <div class="container">
        <div class="inner">
          <div class="con-top clearfix">
          {include_core file="lib/sidebar.html" crumbs_1="service" crumbs_2="comment"}
            <div class="evaluate clearfix">
              <div>
                <div class="teal clearfix">
                  <div class="teal-txt">
                    <ul class="clearfix">
                      <li {if !$status}class="curr"{/if}><a href="{AnUrl("comment?status=0")}">待评价商品</a>|</li>
                      <li {if $status == 1}class="curr"{/if}><a href="{AnUrl("comment?status=1")}">已评价商品</a></li>
                      <!-- <li>|<a href="javascript:void(0);">评价失效商品</a></li> -->
                    </ul>
                    <h3>商品评价</h3>
                    <span>我们真诚的邀请您对购买到的商品发表使用感受和评价。</span>
                  </div>
                </div>

                <div class="circt clearfix">
                {foreach $order_relation_list as $k=>$v}
                  {$cover = goods_helper::sku_cover($v.sku_id)}
                  {$goods_info = _uri('goods', $v.goods_id)}
                  <div class="circt-box">
                    <div class="circt-top clearfix">
                      <h4 style="height:235px;"><img src="{_image($cover)}"/></h4>
                      <div class="circt-l">
                        <h1 class="not-line">{$goods_info.title}</h1>
                        <div class="circt-s">
                          {$star = comment_helper::get_comment_star($v.goods_id)}
                          {for $a=1 to 5}
                            <a href="javascript:void(0);" {if $a>$star}class="check-cir"{/if}></a>
                          {/for}
                        </div>
                      </div>
                      <div class="circt-r">
                        <h1>{$v.goods_price}元</h1>
                        <h2>{$v.count}人评价</h2>
                      </div>
                    </div>
              	    <div class="circt-add clearfix">
                      {if !$v.comment_info}
                        <a class="kind" href="{AnUrl("comment/add?order_relation_id={$v.id}")}">我要评价</a>
                      {else}
                        <a class="kind2" href="{AnUrl("comment/add?order_relation_id={$v.id}&comment_id={$v.comment_info.id}")}">查看评价</a>
                      {/if}
                      <div class="hidden">
                        <a class="kind2" href="javascript:void(0);">查看评价</a>
                      </div>
              	    </div>
                  </div>
                {foreachelse}
                  <div class="menu-all"><p>暂无评价商品</p></div>
                {/foreach}
                  <!--circt-box  end-->
                </div>
                <!--circt  end-->
                {include_core file="lib/page_fav.html"}
                <!--page-box  end-->
              </div>
            </div>
            <!--evaluate end-->
          </div>
          <!--con-top  end-->
        </div>
        <!--inner  end-->
      </div>
      <!--container  end-->
{include_core file="lib/footer.html"}